1d9e3f86003812b0e963e2334c831949898ea9b4,wicket/src/java/wicket/markup/parser/XmlPullParser.java,XmlPullParser,nextTag,#,197

Before Change


				}

				// Get the tagtext between open and close brackets
				tagText = input.substring(openBracketIndex + 1, closeBracketIndex);
			}
			
			{

After Change


				if (pos == -1)
				{
					throw new ParseException("Unclosed comment beginning at line:"
							+ input.getLineNumber() + " column:" + input.getColumnNumber(),
							openBracketIndex);
				}

				this.input.setPosition(pos + 3);
				return nextTag();
			}

			// CDATA sections might contain "<" which is not part of an XML tag.
			// Make sure escaped "<" are treated right
			final String startText = (tagText.length() <= 8 ? tagText : tagText.substring(0, 8));
			if (startText.toUpperCase().equals("![CDATA["))
			{
				// Get index of closing tag and advance past the tag
				closeBracketIndex = findCloseBracket('>', openBracketIndex);

				if (closeBracketIndex == -1)
				{
					throw new ParseException("No matching close bracket at position "
							+ openBracketIndex, this.input.getPosition());
				}

				// Get the tagtext between open and close brackets
				tagText = this.input.getSubstring(openBracketIndex + 1, closeBracketIndex)
						.toString();
			}

			{